﻿#ifndef REALTIMEMONITOR_H
#define REALTIMEMONITOR_H

#include <QThread>
#include <QHash>
#include <QString>
#include <QDateTime>

class QTimer;

namespace GenerateReport
{
    class RealTimeMonitor : public QThread
    {
        Q_OBJECT
    public:
        RealTimeMonitor();
        ~RealTimeMonitor();
        void setTimeStep(int t);
        void run() override;
        void stop();

    private slots:
        void onTimeout();

    private:
        int _timeStep{ -1 };
        QTimer* _timer{};
    };
}


#endif
